package com.common.utils.convert.Factory;

import java.util.Date;

import com.common.utils.convert.Convert;

public class ObjectToDate implements Convert<Object, Date> {

	@Override
	public Date convert(Object source) {
		if(source.getClass().equals(java.util.Date.class)){
			return (java.util.Date)source;
		}
		return new Date();
	}

}
